package jdbc.stu7_29;

import java.sql.ResultSet;

public class Single {

	public static void main(String[] args) throws Exception {
		FirstS s = FirstSImpl.getS();
		ResultSet rs = s.getRs("select * from bank");
		System.out.println("id\tmoney");
		while (rs.next()) {
			System.out.print(rs.getString(1) + "\t");
			System.out.println(rs.getDouble(2));
		}
		rs.close();
		s.close();
	}
}
